<div class="footer">



    <div class="mui-content">
        <div class="mui-row">
            <div class="mui-col-sm-3 mui-col-xs-3">
                <a href="mowList.html?1">
                    <div class="center" id="footer1">
                        <img src="../img/bottomSignal_1(50_50).png" alt="">
                        <p>信号源列表</p>
                    </div>
                </a>

            </div>
            <div class="mui-col-sm-3 mui-col-xs-3">
                <a href="chi.html?2">
                    <div class="center" id="footer2">
                        <img src="../img/bottomPosition_1(50_50).png" alt="">
                        <p>当前持仓</p>
                    </div>
                </a>

            </div>
            <div class="mui-col-sm-3 mui-col-xs-3">
                <a href="history.html?3">
                    <div class="center" id="footer3">
                        <img src="../img/bottomHistory_1(50_50).png" alt="">
                        <p>历史订单</p>
                    </div>
                </a>

            </div>
            <div class="mui-col-sm-3 mui-col-xs-3">
                <a href="mine.html?4">
                    <div class="center" id="footer4">
                        <img src="../img/bottomMine_1(50_50).png" alt="">
                        <p>我的</p>
                    </div>
                </a>

            </div>

        </div>
    </div>
</div>
<script>
    if(window.location.search.split("?")[1].indexOf("1")!=-1){
        $("#footer1").addClass("active");
        $("#footer1 img").attr("src","../img/bottomSignal_2.png")
    }
    if(window.location.search.split("?")[1].indexOf("2")!=-1){
        $("#footer2").addClass("active");
        $("#footer2 img").attr("src","../img/bottomPosition_2(50_50).png")
    }
    if(window.location.search.split("?")[1].indexOf("3")!=-1){
        $("#footer3").addClass("active");
        $("#footer3 img").attr("src","../img/bottomHistory_2(50_50).png")
    }

    if(window.location.search.split("?")[1].indexOf("4")!=-1){
        $("#footer4").addClass("active");
        $("#footer4 img").attr("src","../img/bottomMine_2(50_50).png")
    }
    mui('body').on('tap','a',function(){
        window.location.href=this.href;
    });

</script>
